import http from '@/utils/quest'

export const addtext = (data) =>http.post('/students/addstu',{
    ...data
})

export const stutext = (count = 5, page = 1, classes) =>http.get('/students/getstulist',{
    params:{
        count,
        page,
        class: classes
    }
})

export const xiugai = (daata) =>http.post('/students/updatestu',{
    ...daata
})

export const deltxt = (sId) =>http.get('/students/delstu',{
    params:{
        sId
    }
})

export const search = (key) =>http.get('/students/searchstu',{
    params:{
        key
    }
})

// 获取登入日志
export const getriz = () =>http.get('/getloginlog')

// 获取所有用户
export const fetuser = () =>http.get('/users/getAllUsers')